package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.core.framework.base.entity.DataEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 费用项目
 * 
 * @ClassName: CdcExpitemEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:07
 */
@TableName("t_cdc_bs_expitem") 
public class CdcExpitemEntity extends DataEntity<CdcExpitemEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	//费用记录
	private Long expenseId;	
	//代码
	private String code;	
	//描述
	private String description;	
	//值
	private BigDecimal cost;
	//费用日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date expenseDate;	
	//是否有效
	private Integer isActive;	

	/**
	 * 设置：费用记录
	 */
	public void setExpenseId(Long expenseId) {
		this.expenseId = expenseId;
	}
	/**
	 * 获取：费用记录
	 */
	public Long getExpenseId() {
		return expenseId;
	}
	/**
	 * 设置：代码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：代码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：描述
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 获取：描述
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 设置：值
	 */
	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}
	/**
	 * 获取：值
	 */
	public BigDecimal getCost() {
		return cost;
	}
	/**
	 * 设置：费用日期
	 */
	public void setExpenseDate(Date expenseDate) {
		this.expenseDate = expenseDate;
	}
	/**
	 * 获取：费用日期
	 */
	public Date getExpenseDate() {
		return expenseDate;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
}
